package com.house.common.exception;


import com.house.common.result.HttpCodeEnum;

public class HouseException extends RuntimeException{

    private HttpCodeEnum httpCodeEnum;

    public HouseException(HttpCodeEnum httpCodeEnum) {
        super(httpCodeEnum.getMsg());
        this.httpCodeEnum = httpCodeEnum;
    }

    public HttpCodeEnum getHttpCodeEnum() {
        return httpCodeEnum;
    }

}
